//
//  HomeBannerModel.m
//  
//
//  Created by 王长飞 on 2018/10/20.
//  Copyright © 2018年 王长飞. All rights reserved.
//

#import "MoreGoodsModel.h"

@implementation MoreGoodsModel

- (instancetype)initWithDelegate:(id<BaseModelProtocol>)Delegate cache:(BOOL)cache
{
    if (self = [super initWithDelegate:Delegate cache:cache]) {
        self.parseModelClass = [MoreGoodsResponse class];
    }
    return self ;
}
- (void)getMoreGoodsDataWith:(int)pageNum salesNumSort:(int)salesNumSort priceSort:(int)priceSort productName:(NSString *)productName categoryId:(NSString *)categoryId;
{
    NSMutableDictionary *parameters = [NSMutableDictionary dictionaryWithCapacity:8];
    EFAppContext *appc = [EFAppContext sharedContext];
    [parameters setValue:[NSString stringWithFormat:@"%d",pageNum] forKey:@"pageNum"];
    [parameters setValue:@"10" forKey:@"pageSize"];
    [parameters setValue:[NSString stringWithFormat:@"%d",salesNumSort] forKey:@"salesNumSort"];
    [parameters setValue:[NSString stringWithFormat:@"%d",priceSort] forKey:@"priceSort"];
    [parameters setValue:productName forKey:@"productName"];
    [parameters setValue:categoryId forKey:@"categoryId"];
    [parameters setValue:EUInitId forKey:@"storeUnitId"];
    [parameters setValue:@"2" forKey:@"unitType"];
    [self postPath:@"xqn/app/shopProduct/productList" parameters:parameters];
}

@end
